<template>
    <div class="xm-new">
        <XmListPage :url="url" :query="query" @onLoad="onLoad" />
    </div>
</template>

<script>
import { INTERVIEW_LIST_API } from '@/constant/api'
import XmListPage from '@/components/XmListPage.vue'

export default {
  name: 'XmNew',
  components: {
    XmListPage
  },
  data () {
    return {
      url: INTERVIEW_LIST_API,
      query: {
        current: 1,
        pageSize: 10,
        stem: '',
        keyWord: '',
        sorter: ''
      }
    }
  },
  methods: {
    onLoad () {
      this.query = { ...this.query, current: this.query.current + 1 }
    }
  }
}
</script>

<style lang="less" scoped></style>
